package com.example.jetpack.b_viewModel_livedata.livedata

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData

object Repository {
    /**
     * 模拟网络请求获取用户信息
     */
    fun getUser(userId: Int): LiveData<User> {
        val liveData = MutableLiveData<User>()
        liveData.value = User(userId, "william", "kobe", 0)
        return liveData
    }
}